SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 55704: SAS® Studio 3.2 requires additional steps to work with SAS/ACCESS® Interface to ODBC and MySQL

DetailsAboutRate It

In SAS Studio 3.2, the encoding to read and write text files is set to UTF-8 and cannot be changed. In order to use SAS/ACCESS Interface to ODBC with MySQL with an encoding of UTF-8, the following configuration steps are required:

  1. Along with the other environment variables for using ODBC, you must set EASYSOFT_UNICODE to YES.
    • If SAS/ACCESS Interface to ODBC is installed on a UNIX system, complete these steps:
      1. Open the sasenv_local file, located in !SASROOT/bin.
      2. Add this command to the file: export EASYSOFT_UNICODE=YES
  2. You must add CHARSET=UTF8 in the MySQL DSN stanzas in the global odbc.ini file.
  3. To avoid socket-related errors when trying to use SAS/ACCESS Interface to ODBC to connect to MySQL, you might need to set the ODBCSYSINI environment variable to the directory containing the odbc.ini file.
  4. It might also be necessary to set the ODBCINI environment variable.
  5. To find the encoding for a MySQL database, you can use the unixODBC ISQL query tool and submit commands similar to the following:
       show variables like 'character\_set\_%'
       show create database <database>

Starting with SAS® Studio 3.3, the text encoding can be changed. These steps are still required if an encoding of UTF-8 is used.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS StudioMicrosoft® Windows® for x643.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8 Enterprise 32-bit3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8 Enterprise x643.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8 Pro 32-bit3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8 Pro x643.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8.1 Enterprise 32-bit3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8.1 Enterprise x643.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8.1 Pro3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows 8.1 Pro 32-bit3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 20083.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 2008 R23.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 2008 for x643.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 2012 Datacenter3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 2012 R2 Datacenter3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 2012 R2 Std3.23.39.4 TS1M29.4 TS1M2
Microsoft Windows Server 2012 Std3.23.39.4 TS1M29.4 TS1M2
Windows 7 Enterprise 32 bit3.23.39.4 TS1M29.4 TS1M2
Windows 7 Enterprise x643.23.39.4 TS1M29.4 TS1M2
Windows 7 Home Premium 32 bit3.23.39.4 TS1M29.4 TS1M2
Windows 7 Home Premium x643.23.39.4 TS1M29.4 TS1M2
Windows 7 Professional 32 bit3.23.39.4 TS1M29.4 TS1M2
Windows 7 Professional x643.23.39.4 TS1M29.4 TS1M2
Windows 7 Ultimate 32 bit3.23.39.4 TS1M29.4 TS1M2
Windows 7 Ultimate x643.23.39.4 TS1M29.4 TS1M2
64-bit Enabled AIX3.23.39.4 TS1M29.4 TS1M2
64-bit Enabled Solaris3.23.39.4 TS1M29.4 TS1M2
HP-UX IPF3.23.39.4 TS1M29.4 TS1M2
Linux for x643.23.39.4 TS1M29.4 TS1M2
Solaris for x643.23.39.4 TS1M29.4 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.